// pages/home/home.js
const app = getApp();
Page({
  data: {

  },
  onLoad: function (options) {
    //显示自定义导航栏
    // app.editTabBar();    //显示自定义的底部导航
  },
  onUnload: function () {
    wx.reLaunch({
        url: '../index/index', //指定url
    })
},
  toTestPage: function(e){
    let testId = e.currentTarget.dataset['testid'];
    wx.navigateTo({
      url: '../test/test?testId='+testId
    })
  },
})